package com.itcp.itelpicture.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 标签表
 * @TableName tag
 */
@TableName(value ="tag")
@Data
public class Tag implements Serializable {
    /**
     * 标签ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 标签名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 标签分类
     */
    @TableField(value = "category")
    private String category;

    /**
     * 图标URL
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 帖子数量
     */
    @TableField(value = "postCount")
    private Integer postCount;

    /**
     * 关注人数
     */
    @TableField(value = "followerCount")
    private Integer followerCount;

    /**
     * 排序
     */
    @TableField(value = "sortOrder")
    private Integer sortOrder;

    /**
     * 状态：0-禁用，1-启用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}